package ru.evga.inse.server.gwt.user.client.menu.general;

import ru.evga.inse.server.gwt.user.client.IUserAppFactory;

import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.AcceptsOneWidget;


public class GeneralContentActivity
    extends AbstractActivity
    implements ru.evga.inse.server.gwt.user.client.menu.general.GeneralContentView.Presenter
{
    
    private IUserAppFactory m_factory;
    
    
    public GeneralContentActivity(IUserAppFactory factory)
    {
        m_factory = factory;
    }
    
    public void start(AcceptsOneWidget panel, EventBus eventBus)
    {
        GeneralContentView view = m_factory.getMenuFactory().getMainContentView();
        view.setPresenter(this);
        panel.setWidget(view.asWidget());
    }

    public void goToRealty()
    {
    }

    public void goToForum()
    {
    }
}
